<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../register.html></script>
</head>

<body>
    import * as echarts from 'echarts';

    var chartDom = document.getElementById('main');
    var myChart = echarts.init(chartDom);
    var option;

    option = {
    // 标题部分的设置
    title: {
    text: '2021全学科薪资走势'
    },
    // x轴的设置
    xAxis: {
    type: 'category',
    data: ['1月', '2月', '3月', 'Thu', 'Fri', 'Sat', 'Sun'],
    axisLine: {
    lineStyle: {
    type: 'dashed',
    color: '#d3d3d3'
    }
    },
    axisLabel: {
    color: 'black'
    }
    },
    yAxis: {
    type: 'value'
    },
    series: [
    {
    data: [820, 932, 901, 934, 1290, 1330, 1320],
    type: 'line',
    smooth: true
    }
    ]
    };

    option && myChart.setOption(option);

</body>

</html>